<template> element

A WML deck may contain a <template> element that defines deck-level event bindings, i.e. characteristics that apply to all cards in the deck. You can override these characteristics for a particular card by specifying the same event bindings within the <card> definition (see <card> element).

Syntax

where content represents the general action to take when particular events occur:
 
content You can specify either of the following elements in a template definition: 
<do> 
<onevent> 
(see <do> element)
(see <onevent> element

Attributes

 
onenter
forward
Specifies the URL to open if the user navigates to a card through a <go> task. This attribute represents an abbreviated form of the <onevent> element. 
onenter
backward
Specifies the URL to open if the user navigates to a card through a <prev> task. This attribute represents an abbreviated form of the <onevent> element. 
ontimer Specifies the URL to open if a specified <timer> element expires. This attribute represents an abbreviated form of the <onevent> element.